package com.kzw.oa.system.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "sys_global_type")
public class GlobalType implements Serializable {
	private static final long serialVersionUID = -5012039994035507534L;

	/**
	 * 代表产品分类
	 */
	public static final String CAT_PRODUCT_TYPE = "PT";
	/**
	 * 计量分类
	 */
	public static final String CAT_CAL_UNIT = "CT";
	/**
	 * 数字字典
	 */
	public static final String CAT_DICTIONARY = "DIC";

	/**
	 * 现金银行科目
	 */
	public static final String CAT_BANK_CASH = "BKCH";
	/**
	 * 全宗分类
	 */
	public static final String CAT_ARCH_FOND = "AR_FD";
	/**
	 * 案卷分类
	 */
	public static final String CAT_ARCH_ROLL = "AR_RL";
	/**
	 * 卷内文件分类
	 */
	public static final String CAT_ROLL_FILE = "AR_RLF";

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long proTypeId;

	@Column(length = 100)
	private String typeName;

	@Column
	private String path;

	@Column
	private Integer depth;

	@Column
	private Long parentId;

	@Column(length = 100)
	private String nodeKey;

	@Column(length = 100)
	private String catKey;

	@Column
	private Integer sn;

	@Column
	private Long userId;

	public GlobalType() {
	}

	public GlobalType(Long in_proTypeId) {
		this.setProTypeId(in_proTypeId);
	}

	public Long getProTypeId() {
		return this.proTypeId;
	}

	public void setProTypeId(Long aValue) {
		this.proTypeId = aValue;
	}

	public String getTypeName() {
		return this.typeName;
	}

	public void setTypeName(String aValue) {
		this.typeName = aValue;
	}

	public String getPath() {
		return this.path;
	}

	public void setPath(String aValue) {
		this.path = aValue;
	}

	public Integer getDepth() {
		return this.depth;
	}

	public void setDepth(Integer aValue) {
		this.depth = aValue;
	}

	public Long getParentId() {
		return this.parentId;
	}

	public void setParentId(Long aValue) {
		this.parentId = aValue;
	}

	public String getNodeKey() {
		return this.nodeKey;
	}

	public void setNodeKey(String aValue) {
		this.nodeKey = aValue;
	}

	public String getCatKey() {
		return this.catKey;
	}

	public void setCatKey(String aValue) {
		this.catKey = aValue;
	}

	public Integer getSn() {
		return this.sn;
	}

	public void setSn(Integer aValue) {
		this.sn = aValue;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

}
